function getList(s){$.ajax({type:"get",url:"./Shopping/getGoodsList.php",data:{typeId:s},dataType:"json",success:function(s){s.forEach(s=>{$(".goods-list").append($(`
                <div class="items">
                <a href="products.html?goodsId=${s.goodsId}">
                    <div class="goods">
                        <img src="${s.goodsImg}" alt="">
                        <div class="goods-title-info">${s.goodsName}</div>
                        <div class="youhui">${s.beiyong1}</div>
                        <div class="price">￥${s.goodsPrice}</div>
                    </div>
                </a>
            </div>
                `))})}})}getList("001"),$.ajax({type:"get",url:"./Shopping/getGoodsType.php",data:{},dataType:"json",success:function(s){s.forEach(s=>{$(".center .title").append($(`<div class="items">${s.goodsType}</div>`))}),$(".center .title .items").eq(0).addClass("active"),$(".center .title .items").click(function(){$(this).addClass("active").siblings().removeClass("active"),$(".goods-list").html(""),getList("00"+($(this).index()+1))})}});